<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>ExperimentDetailFormTest</title>
	
	<link rel="stylesheet" type="text/css" href="../../yui/logger/assets/logger.css"> 
	<link rel="stylesheet" type="text/css" href="../../yui/yuitest/assets/testlogger.css"> 
	<script type="text/javascript" src="../../yui/yahoo-dom-event/yahoo-dom-event.js"></script> 
	<script type="text/javascript" src="../../yui/logger/logger-debug.js"></script> 
	<script type="text/javascript" src="../../yui/yuitest/yuitest-debug.js"></script> 

    <script type="text/javascript" src="../../ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../../ext/ext-all-debug.js"></script>
	<script type="text/javascript" src="ExperimentDetailForm.js"></script>
    
    <!-- Include Ext stylesheets here: -->
    <link rel="stylesheet" type="text/css" href="../../ext/resources/css/ext-all.css">
    <link rel="stylesheet" type="text/css" href="../../css/hippo.css">
     
</head>
<body>
	<div id="test"></div>
	
	<script>
	
	Ext.onReady(function() {
		var frm = new Hippo.form.ExperimentDetailForm({width: 500});
    	frm.render('test');
	
	
		var assert = YAHOO.util.Assert;
		
		var testCase = new YAHOO.tool.TestCase({
			name: 'ExperimentDetailFormTest',
	
			testFieldsAreDisplayed: function() {
				var content = frm.el.dom.innerHTML;
				assert.isNotNull(/title/.exec(content));
				assert.isNotNull(/conclusion/.exec(content));
			},

			/** 
			 * Fill in title, type, and active and see if they hold.  The 
			 * other undefined fields should be unaffected
			**/
			testFillForm1: function() {
			},

			/**
			 * A 
			**/
			testFillForm2: function() {
			}

		});
	
		YAHOO.tool.TestRunner.add(testCase);
		YAHOO.util.Event.onDOMReady(function() {
			var logger = new YAHOO.tool.TestLogger("testLogger");
			YAHOO.tool.TestRunner.run();
		});
	});

	</script>
</body>
</html>